<div class="iframe-body-sty">
    <iframe class="dcdev-shadow" id="preview_mobile" style="padding:0px;border-width:0px;" height='568px'
        width='320px'></iframe>
    <!-- <iframe class="dcdev-shadow" id="preview_desktop" style="padding:0px;border-width:0px;" height='1080px'
        width='1920px'></iframe> -->
    <!-- <p class="dcdev-shadow" id="console" style="padding:0px;border-width:0px;height:50px;margin: 10px;"> -->
    </p>
</div>

<script>
    // 设置为是否允许编辑
    function set_editting_enable(type) {
        $("#preview_mobile")[0].contentWindow.document.body.contentEditable = type ? "true" : "false";
        $("#preview_mobile")[0].contentWindow.document.designMode = type ? "on" : "off";
    }
</script>